sepolicy: Cache the value of is_selinux_enabled() to work around bug
authorColin Walters <walters@verbum.org>
Wed, 26 Apr 2017 20:54:52 +0000 (16:54 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 27 Apr 2017 13:30:19 +0000 (13:30 +0000)
commit90b24a8d43a978da57add31b12f2b71c5179cfdc
treeef25b0614f693f6c77be6c2fe151c1f1fbf2793e
parentceb8851806c07a3349d99633fbb6d7d8769e6f7f
sepolicy: Cache the value of is_selinux_enabled() to work around bug

This fixes a regression from:
https://github.com/ostreedev/ostree/pull/797
which is really due to an underlying bug in libselinux which
we're working around:
http://marc.info/?l=selinux&m=149323809332417&w=2

We drop the per-policy instance variable, since the SELinux state
is *really* per-kernel.

Closes: https://github.com/ostreedev/ostree/issues/814
Closes: #815
Approved by: jlebon
src/libostree/ostree-sepolicy.c